package cn.lyjuan.payment.third.base.pay.vo.res;

import cn.lyjuan.payment.third.base.pay.enums.SimpleStatusEnum;
import lombok.Data;

@Data
public class RefundRes extends BaseRes {

    /**
     * <p>
     * 退款是否成功：<br />
     * true 退款成功<br />
     * false 退款失败
     * </p>
     */
    protected SimpleStatusEnum status;

    /**
     * 支付渠道对应退款的状态
     */
    protected String chlStatus;

    /**
     * 支付平台交易流水号
     */
    protected String tranNo;

    protected String message;

    public RefundRes(SimpleStatusEnum status, String chlStatus, String tranNo) {
        this.status = status;
        this.chlStatus = chlStatus;
        this.tranNo = tranNo;
        this.message = message;
    }

    public RefundRes(SimpleStatusEnum status,String message) {
        this.status = status;
        this.message = message;
    }
}
